import request from "@/utils/request";

/**
 * 获取验证码
 *
 * @returns
 */
export const getCodeImg =  () => {
    return  request.get('api/sys/captchaImage');
};
/**
 * 登录接口
 * @param loginParam
 */
export const login = (loginParam) => {
    return  request.post('/api/sys/login',loginParam)
}
/**
 * 登录接口
 * @param loginParam
 */
export const logout = () => {
    return request.post('/api/sys/logout')
}
/**
 * 获取用户详细信息
 */
export const getInfo =  () =>{
    return request.get("/api/sys/getInfo")
}

export const signupUserApi = (params) =>{
    return request.post("/api/sys/register",params)
}
